package it.davial.mgwt.client;


import java.io.Serializable;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="VISIT")
public class Visit   implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8920258117648664589L;
	  
		@Id
		@Column(name="ID_VISIT")
		private int idVisit;
		
		@Column(name="ID_PATIENT")
		private String idPatient;
		
		@Column(name="DESC_VISIT")
		private String descVisit;
		
		@Column(name="DATA_VISIT")
		private String dataVisit;
		
		@Column(name="NOTE_VISIT")
		private String noteVisit;

		@Column(name="DIAGNOSIS_VISIT")
		private String diagnosticVisit;

		@Column(name="CODE_FUNCTION")
		private String codeFunction;
		
		@Column(name="DATA_INS")
		private String dataInsert;
		
		@Column(name="CODE_USER_INS")
		private String codeUserInsert;

		@Column(name="DATA_UPD")
		private String dataUpdate;

		@Column(name="CODE_USER_UPD")
		private String codeUserUpdate;

		@Column(name="STATE")
		private int state;
		
		public String getCodeFunction() {
			return codeFunction;
		}

		public void setCodeFunction(String codeFunction) {
			this.codeFunction = codeFunction;
		}

		public String getDataInsert() {
			return dataInsert;
		}

		public void setDataInsert(String dataInsert)  {
			this.dataInsert = dataInsert;
		}

		public String getCodeUserInsert() {
			return codeUserInsert;
		}
 
		public void setCodeUserInsert(String codeUserInsert) {
			this.codeUserInsert = codeUserInsert;
		}

		public String getDataUpdate() {
			return dataUpdate;
		}

		public void setDataUpdate(String dataUpdate)  {
			this.dataUpdate = dataUpdate;
		}

		public String getCodeUserUpdate() {
			return codeUserUpdate;
		}

		public void setCodeUserUpdate(String codeUserUpdate) {
			this.codeUserUpdate = codeUserUpdate;
		}

		public int getState() {
			return state;
		}

		public void setState(int state) {
			this.state = state;
		}
		
		public int getIdVisit() {
			return idVisit;
		}

		public void setIdVisit(int idVisit) {
			this.idVisit = idVisit;
		}

		public String getIdPatient() {
			return idPatient;
		}

		public void setIdPatient(String idPatient) {
			this.idPatient = idPatient;
		}

		public String getDescVisit() {
			return descVisit;
		}

		public void setDescVisit(String descVisit) {
			this.descVisit = descVisit;
		}

		public String getDataVisit() {
			return dataVisit;
		}

		public void setDataVisit(String dataVisit) {
			this.dataVisit = dataVisit;
		}

		public String getNoteVisit() {
			return noteVisit;
		}

		public void setNoteVisit(String noteVisit) {
			this.noteVisit = noteVisit;
		}

		public String getDiagnosticVisit() {
			return diagnosticVisit;
		}

		public void setDiagnosticVisit(String diagnosticVisit) {
			this.diagnosticVisit = diagnosticVisit;
		}

		@Override
		public String toString() {
			return "Visit [idVisit=" + idVisit + ", idPatient=" + idPatient
					+ ", descVisit=" + descVisit + ", dataVisit=" + dataVisit
					+ ", noteVisit=" + noteVisit + ", diagnosticVisit="
					+ diagnosticVisit + ", codeFunction=" + codeFunction
					+ ", dataInsert=" + dataInsert + ", codeUserInsert="
					+ codeUserInsert + ", dataUpdate=" + dataUpdate
					+ ", codeUserUpdate=" + codeUserUpdate + ", state=" + state
					+ "]";
		}

		

	  
}
